home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 2: Applications
/
Linux Cubed Series 2 - Applications.iso
/
circuits
/
irsim-ca.2
/
irsim-ca
/
irsim-cap-9.2
/
install_ifsim
< prev
next >
Wrap
Text File
|
1995-11-03
|
1KB
|
50 lines
#!/bin/csh
echo 'Installing in CAD_HOME='$CAD_HOME 'instead of ~cad'
set cad_dir = $CAD_HOME
if( ! -d $cad_dir ) then
echo 'Install directory does not exist:' $cad_dir
exit 1
endif
if( ! -w $cad_dir ) then
echo 'Install directory is not writeable:' $cad_dir
exit 1
endif
set man_dir = $cad_dir/man
set bin_dir = $cad_dir/bin
set doc_dir = $cad_dir/doc
if( ! -d $bin_dir ) mkdir $bin_dir
rm -f $bin_dir/ifsim-cap
cp src/fsim/ifsim $bin_dir/ifsim-cap
chmod 555 $bin_dir/ifsim-cap
if( ! -d $man_dir ) mkdir $man_dir
foreach mp ( man/man? )
set ext = $mp:e
set nm = $mp:t
# echo $ext
echo $nm
if( ! -d $man_dir/$nm ) mkdir $man_dir/$nm
# rm -f $man_dir/$n$ext/$nm
cp man/$nm/* $man_dir/$nm
chmod 444 $man_dir/$nm/*
end
## exit if there's no cad/doc directory
if( ! -d $doc_dir ) exit 0
if( ! -d $doc_dir/irsim ) mkdir $doc_dir/irsim
foreach d ( man/*.doc )
rm $doc_dir/irsim/$d:t
cp $d $doc_dir/irsim
end
chmod 444 $doc_dir/irsim/*.doc